import request from '@/utils/request'

// 查询商户推送信息列表
export function listPushInfo(query) {
  return request({
    url: '/merchant/pushInfo/list',
    method: 'get',
    params: query
  })
}
// 查询商户推送信息列表
export function listPoolInfo(query) {
  return request({
    url: '/merchant/pushInfo/list1',
    method: 'get',
    params: query
  })
}

// 查询商户推送信息详细
export function getPushInfo(id) {
  return request({
    url: '/merchant/pushInfo/' + id,
    method: 'get'
  })
}

// 新增商户推送信息
export function addPushInfo(data) {
  return request({
    url: '/merchant/pushInfo',
    method: 'post',
    data: data
  })
}

// 新增商户推送信息
export function laoquPoolInfo(data) {
  return request({
    url: '/merchant/pushInfo/laoqu',
    method: 'post',
    data: data
  })
}


export function listCount(query) {
  return request({
    url: '/merchant/pushInfo/count/list',
    method: 'get',
    params: query
  })
}

// 修改商户推送信息
export function updatePushInfo(data) {
  return request({
    url: '/merchant/pushInfo',
    method: 'put',
    data: data
  })
}

// 删除商户推送信息
export function delPushInfo(id) {
  return request({
    url: '/merchant/pushInfo/' + id,
    method: 'delete'
  })
}
